import 'package:flutter/material.dart';

import '../../services/ScreenAdaper.dart';

class TabGoodsEvaluate extends StatefulWidget {
  Map arguments;

  TabGoodsEvaluate({super.key, required this.arguments});

  @override
  _TabGoodsEvaluateState createState() => _TabGoodsEvaluateState();
}

class _TabGoodsEvaluateState extends State<TabGoodsEvaluate> {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      child: InkWell(
        onTap: () {
          showMenu(context: context, position: RelativeRect.fromLTRB(ScreenAdapter.width(600), 76, 10, 0), items: [
            const PopupMenuItem(
              child: Text("全部评价"),
            ),
            const PopupMenuItem(
              child: Text("好评"),
            ),
            const PopupMenuItem(
              child: Text("中评"),
            ),
          ]);
        },
        child: Text("商品评论 ${this.widget.arguments["goodsId"]}"),
      ),
    );
  }
}
